package com.studentexam.student.tool;

/**
 * 返回值的格式内容
 */
public class ResponseMessage<T> {
    private String respCode;
    private  String respMsg;
    private  T data;
    private boolean ok;

    public ResponseMessage(String respCode,String respMsg){
        this.respCode=respCode;
        this.respMsg=respMsg;
    }

    public ResponseMessage(String respCode,String respMsg,boolean ok){
        this.respCode=respCode;
        this.respMsg=respMsg;
        this.ok=ok;
    }

    public ResponseMessage(String respCode,String respMsg,boolean ok,T data){
        this.respCode=respCode;
        this.respMsg=respMsg;
        this.ok=ok;
        this.data=data;
    }

    public String getRespCode() {
        return respCode;
    }

    public void setRespCode(String respCode) {
        this.respCode = respCode;
    }

    public String getRespMsg() {
        return respMsg;
    }

    public void setRespMsg(String respMsg) {
        this.respMsg = respMsg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public boolean isOk() {
        return ok;
    }

    public void setOk(boolean ok) {
        this.ok = ok;
    }
}
